﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ArticleEdit.aspx.cs" Inherits="ecommerceSample.Writer.ArticleEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="page-title">Edición de Artículos</div>
<hr />

    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:ecommerceSample %>" 
        ProviderName="<%$ ConnectionStrings:ecommerceSample.ProviderName %>"             
        SelectCommand="SELECT * FROM Articles INNER JOIN Categories ON Articles.CategoryId = Categories.CategoryId INNER JOIN aspnet_Users ON Articles.UserId = aspnet_Users.UserId ORDER BY Date DESC ">
        </asp:SqlDataSource>
    
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="Title" DataValueField="ArticleId" AppendDataBoundItems="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
        <asp:ListItem>(Select)</asp:ListItem>
    </asp:DropDownList>

    <br />
</asp:Content>
